package com.anxin.baseproject2.modle.http.api;


import com.anxin.baseproject2.modle.enity.BaseHttpEnity;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by hcc on 16/8/30 19:52
 * 100332338@qq.com
 * <p>
 * bilibili-go相关api
 */
public interface BiliGoService {

  /**
   * b站高清视频
   * quailty:清晰度(1~2，根据视频有不同)
   * type: 格式(mp4/flv)
   */
  @GET("/video/{cid}")
  Observable<String> getHDVideoUrl(@Path("cid") int cid,
                                   @Query("quailty") int quailty,
                                   @Query("type") String type);

  /**
   * 新番连载
   */
  @GET("bangumi")
  Observable<BaseHttpEnity<String>> getNewBangumiSerialList();

  @GET("scrollImg/scrollImg_query.action")
  Observable<ResponseBody> getAdasData(@Query("putLocation") String putLocation);

  @POST("upload")
  Observable<BaseHttpEnity> upload(@Body MultipartBody multipartBody);


}